package com.app.community.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * reset的mapper层
 * @Date 2020/10/25 11:10
 **/
@Mapper
public interface ResetMapper {

    /**
     * 更新用户密码
     */
    @Update({"update user set password = #{password} where user_id = #{userId};"})
    void resetUser(@Param("userId")String userId,@Param("password")String password);


}
